package com.easy.dfc.service;

import com.easy.common.bean.Result;
import com.easy.common.constant.EnumConfig;
import com.easy.dfc.mapper.FactorySetMapper;
import com.easy.dfc.mapper.UserDfcMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Map;

/**
 * Created by VULCANTSeries on 2017/5/17.
 */
@Service
public class UserDfcService {

    @Resource
    private UserDfcMapper userDfcMapper;

    @Resource
    private FactorySetMapper factorySetMapper;


    public Result Login(String mobile, String password) {
        Result rt = new Result();
        Map<String,Object> map = userDfcMapper.Login(mobile,password);
        map.put("userId","");
        map.put("token","");
        map.put("nick","");
        map.put("avatar","");
        map.put("userType","");
        map.put("factoryId","");
        map.put("factoryType","");
        rt.setStatus(EnumConfig.S_CODE.OK);
        rt.setData(map);
        return rt;
    }

}
